package com.naiterui.ehp.bs.recommend.repository.mysql;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.recommend.bean.DrCommonPrescriptionDetail;


@Repository
public interface IDrCommonPrescriptionDetailRepository extends BaseJpaRepository<DrCommonPrescriptionDetail, Long> {

    List<DrCommonPrescriptionDetail> findByPrescriptionIdOrderByIdAsc(Long prescriptionId);

    void deleteAllByPrescriptionId(Long prescriptionId);

}
